<?php /* Smarty version Smarty-3.1.18, created on 2015-07-25 15:44:52
         compiled from "D:\WWW\yf_qiaqia\Admin\View\Goods\selectattr.html" */ ?>
<?php /*%%SmartyHeaderCode:3190955b33e74c7a8d3-30765290%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '11c037b62dfa838407b2bab6e8041b5a48d45dca' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Admin\\View\\Goods\\selectattr.html',
      1 => 1430901368,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3190955b33e74c7a8d3-30765290',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'attr_list' => 0,
    'item' => 0,
    'val' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55b33e74e8dd50_51789611',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55b33e74e8dd50_51789611')) {function content_55b33e74e8dd50_51789611($_smarty_tpl) {?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css" />
		<style type="text/css">
			.hy-js-fieldarea label{ border: 2px solid #ddd; width: 100%;background: #ddd;height: 40px;border-radius: 4px;line-height: 30px;padding-left: 10px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
		     .am-icon-photo{ cursor: pointer;}
		</style>
	</head>

	<body>
		<div class="am-container">
			<div class="am-g">
				<div class="am-form">
					<div class="am-form-group">
						<label for="doc-select-2">多选框(多选请CTRL+鼠标左键选择)</label>
						<select multiple="multiple" class="hy-js-chooseattr" id="doc-select-2">
							<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['attr_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
							<option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</option>
							<?php } ?>

						</select>

					</div>
					<div class="am-form-group hy-js-attrlist">
						<p>属性列表：请勾选所需要的属性</p>
						<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['attr_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
						<div id="hy-js-attrgroup-<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" class="hy-hide am-g hy-js-attrgroup  am-margin-top">
							<div class="am-u-sm-1">
							<label for="doc-select-2"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</label>
						</div>
						<div class="am-u-sm-11">
							<div class="am-btn-group" data-am-button="">
								<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['item']->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
								<label class="am-btn am-btn-default am-btn-xs   ">
									<input type="checkbox" class="attr-<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" name="attr-<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" value='<?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
' data-value='<?php echo $_smarty_tpl->tpl_vars['val']->value['value'];?>
' id="option1"> <?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>

								</label>
								
								<?php } ?>
							</div>
						</div>
						</div>
							<?php } ?>
					</div>
					<div class="am-form-group">
						 <button class="am-btn am-btn-xs hy-js-save">确定</button>
					</div>
                 
				</div>
			</div>
		</div>
		<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/editor/kindeditor.js"></script>
		<script type="text/javascript">
			$('.hy-js-chooseattr').click(function(){
				var value=$(this).val();
				$('.hy-js-attrgroup').hide();
				for(var key in value)
				{
					id=value[key];
					$('#hy-js-attrgroup-'+id).show();
				}
				
				});
		</script>
	</body>

</html><?php }} ?>
